<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="templates/template.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <ui:define name="title">
        <h:outputText value="#{msgs['enquiryForm.title']}"/>
    </ui:define>
    <ui:define name="content">
        <script type="text/javascript">
        </script>
        <div id="welcome_message" class="basic_style_1">
            <h2 id="welcome_message_title" class="font_cufon">#{msgs['enquiryForm.title']}</h2>
            <h:form id="frmEnquiry">
                <p:focus context="frmEnquiry"/>
                <table id="grdEnquiry" class="tblNeedPadding tblMain">
                    <tr>
                        <th colspan="4" class="tHeader">#{msgs['enquiryForm.header1']}</th>
                    </tr>
                    <tr>
                        <td class="label"><h:outputLabel for="name" value="#{msgs['enquiryForm.name']}"/></td>
                        <td colspan="3">
                            <p:inputText style="width:95%" value="#{enquiryFormController.model.senderName}"
                                         id="name" required="true" label="#{msgs['enquiryForm.name']}"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="label"><h:outputLabel for="email" value="#{msgs['enquiryForm.email']}"/></td>
                        <td colspan="3">
                            <p:inputText style="width:95%" value="#{enquiryFormController.model.senderEmail}"
                                         id="email" required="true" label="#{msgs['enquiryForm.email']}"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="label"><h:outputLabel for="subject" value="#{msgs['enquiryForm.subject']}"/></td>
                        <td colspan="3">
                            <p:inputText style="width:95%" value="#{enquiryFormController.model.subject}"
                                         id="subject" required="true" label="#{msgs['enquiryForm.subject']}"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="label"><h:outputLabel for="content" value="#{msgs['enquiryForm.content']}"/></td>
                        <td colspan="3">
                            <p:inputTextarea style="width:95%" rows="5" effectDuration="250" value="#{enquiryFormController.model.content}"
                                             id="content" label="#{msgs['enquiryForm.content']}" required="true"/>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="4" class="tHeader">&nbsp;</th>
                    </tr>
                    <tr>
                        <td colspan="4" style="text-align:center">
                            <p:commandButton value="#{msgs['enquiryForm.submitText']}" image="ui-icon ui-icon-mail-closed" action="#{enquiryFormController.send}" type="submit" update="growl"/>
                            &nbsp;<p:commandButton value="#{msgs['enquiryForm.cancelText']}" image="ui-icon ui-icon-closethick" type="reset"/>
                        </td>
                    </tr>
                </table>
            </h:form>
        </div>
    </ui:define>
</ui:composition>




